<template>
  <div id="swiper">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in images" :key="item.src">
        <img :src="item.src" class="exhibition">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: 'swiperPages',
  props: {
    images: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>
  .my-swipe{
    border-radius: 10px;
      overflow: hidden;
  }
  .exhibition{
    height: 160px;
    object-fit: cover;
  }
</style>
